﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using TaoPortal.BusinessLogic.Repository;

namespace TaoPortal.Controllers
{
    public class FileController : Controller
    {

        public void Index(string id, string size)
        {
            var frp = new FileRepository();
            var f = frp.GetFile(id);
            Response.ContentType = f.FType;
            Response.BinaryWrite(f.FData);
        }
    }
}
